import config from '@/config'
import http from '@/utils/request'

export default {
  token: {
    url: `${config.API_URL}/token`,
    name: '登录获取TOKEN',
    post: async function (data = {}) {
      return {
        code: 200,
        data: {
          token: 'SCUI.Administrator.Auth',
          userInfo: {
            userId: '1',
            userName: 'Administrator',
            dashboard: '0',
            role: ['SA', 'admin', 'Auditor']
          }
        },
        message: ''
      }
      // return await http.post(this.url, data)
    }
  }
}
